import request from '@/utils/request'
export default {
    addVideo(video) {
        return request({
            url: `/admin/edu/video/save`,
            method: 'post',
            data: video
        })
    },
    selectVideo(id) {
        return request({
            url: `/admin/edu/video/${id}`,
            method: 'get',
        })
    },
    updateVideo(video) {
        return request({
            url: `/admin/edu/video/update`,
            method: 'put',
            data: video
        })
    },
    removeVideoById(id){
        return request({
            url:`/admin/edu/video/delete/${id}`,
            method:'delete'
        })
    },
    //阿里云服务删除
    removeAliyunVideo(id){
          return request({
              baseURL:'http://127.0.0.1:8130',
              url:`/admin/vod/media/delete/${id}`,
              method:'delete'
          })
    }
}